package com.bloody.android;

import com.bloody.android.Bluetooth.Create;
import com.bloody.android.Bluetooth.Join;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Menu extends Activity {
	
	
	private Button mCreateButton;
	private Button mJoinButton;

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.menu);
        
        final Activity thisActivity= this;
        
        mCreateButton = (Button) findViewById(R.id.create);
        mCreateButton.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                Intent intent = new Intent(thisActivity, Create.class);
                startActivity(intent);
                finish();
            }
        });
        
        mJoinButton = (Button) findViewById(R.id.join);
        mJoinButton.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	Intent intent = new Intent(thisActivity, Join.class);
                startActivity(intent);
                finish();
            }
        });
	}
	
}
